package com.nc.delivery_project.client.request;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;
import com.nc.delivery_project.server.service.RoleService;
import com.nc.delivery_project.shared.proxy.RoleProxy;
import com.nc.delivery_project.shared.servicelocator.RoleServiceLocator;

import java.util.List;

/**
 * Created by miroshnik on 12/28/2014.
 */
@Service(value = RoleService.class, locator = RoleServiceLocator.class)
public interface RoleRequest extends RequestContext {

    Request<List<RoleProxy>> read();
    
    Request<RoleProxy> read(int roleId);
}
